<?php
class My_Forms_Admin_User extends Zend_Form {
	public function __construct($options = null) {
		parent::__construct ( $options );
		$this->setName ( 'user' );
		
		$passWord_old = new Zend_Form_Element_Password ( 'passWord_old' );
		$passWord_old->setLabel ( '原密码:' )->setRequired ( true )->addValidator ( 'NotEmpty', true );
		
		$passWord = new Zend_Form_Element_Password ( 'passWord' );
		$passWord->setLabel ( '新密码:' )->setRequired ( true )->addValidator ( 'NotEmpty', true );
		
		$passWord_re = new Zend_Form_Element_Password ( 'passWord_re' );
		$passWord_re->setLabel ( '再输入一次新密码:' )->setRequired ( true )->addValidator ( 'NotEmpty', true );
		
		$submit = new Zend_Form_Element_Submit ( 'submit' );
		$submit->setLabel ( '修改' );
		
		$this->addElements ( array ($passWord_old, $passWord, $passWord_re, $submit ) );
	}
}
?>